tools/ocaml/evtchn: Extend the init() binding with a cloexec flag
authorEdwin Török <edvin.torok@citrix.com>
Thu, 3 Nov 2022 14:50:38 +0000 (14:50 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 20 Dec 2022 13:13:40 +0000 (13:13 +0000)
commitc7cf603836e40de1b4a6ca7d1d52736eb4a10327
tree30250a70c400cb5536c02a85193252be0387c054
parent24d9dc2ae2f88249fcf81f7b7e612cdfb7c73e4b
tools/ocaml/evtchn: Extend the init() binding with a cloexec flag

For live update, oxenstored wants to clear CLOEXEC on the evtchn handle, so it
survives the execve() into the new oxenstored.

Have the new interface match how cloexec works in other Ocaml standard
libraries.

Signed-off-by: Edwin Török <edvin.torok@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Christian Lindig <christian.lindig@citrix.com>
(cherry picked from commit 9bafe4a53306e7aa2ce6ffc96f7477c6f329f7a7)
tools/ocaml/libs/eventchn/xeneventchn.ml
tools/ocaml/libs/eventchn/xeneventchn.mli
tools/ocaml/libs/eventchn/xeneventchn_stubs.c